import request from '@/utils/request'

// 查询
export function applist(data) {
  const {
    pageNum,
    pageSize,
    editionNum,
    isUse,
    isRenew
  } = data
  return request({
    url: `/system/appEdition/listdata?pageSize=${pageSize}&pageNum=${pageNum}&editionNum=${editionNum}&isUse=${isUse}&isRenew=${isRenew}`,
    method: 'get'
  })
}

// 新增
export function addApp(data) {
  return request({
    url: `/system/appEdition/add`,
    method: 'post',
    data
  })
}

// 修改
export function updateApp(data) {
  return request({
    url: `/system/appEdition/update`,
    method: 'post',
    data
  })
}

// 删除
export function deleteApp(ids) {
  return request({
    url: `/system/appEdition/delete?ids=${ids}`,
    method: 'get'
  })
}

// 查看
export function checkApp(id) {
  return request({
    url: `/system/appEdition/getById?id=${id}`,
    method: 'get'
  })
}